import request from '@/utils/request'

// 查询产品模型上线列表-根据销区
export function listbyxq(data) {
  return request({
    url: '/design/xqcpk/open/listbyxq',
    method: 'post',
    data: data
  })
}

export function xqcpklist(query) {
  return request({
    url: '/design/xqcpk/list',
    method: 'get',
    params: query
  })
}

//查询销区产品库-待分配列表
export function dfplist(query) {
  return request({
    url: '/design/xqcpk/dfplist',
    method: 'get',
    params: query
  })
}

export function addXqcpk(data) {
  return request({
    url: '/design/xqcpk',
    method: 'post',
    data: data
  })
}

export function updateXqcpk(data) {
  return request({
    url: '/design/xqcpk',
    method: 'put',
    data: data
  })
}

export function delXqcpk(data) {
  return request({
    url: '/design/xqcpk/'+data.ids,
    method: 'delete'
  })
}